package com.example.userinfo;

import android.os.Bundle;
import android.view.View;

import androidx.fragment.app.FragmentActivity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;

/**
 * 首页模块
 *
 * 其中 path 是跳转的路径，这里的路径需要注意的是至少需要有两级，/xx/xx
 * */
@Route(path = "/userInfo/main")
public class MainActivity extends FragmentActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_userinfo_main);
        ARouter.getInstance().inject(this);

        findViewById(R.id.test).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ARouter.getInstance().build("/app/test2").withBoolean("flag",true).navigation();
            }
        });
    }
}
